home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19980901-19981211 / 000035_news@newsmaster….columbia.edu _Wed Sep 16 00:46:23 1998.msg < prev    next >
Internet Message Format  |  2020-01-01  |  2KB

  1. Return-Path: <news@newsmaster.cc.columbia.edu>
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
  3.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id AAA00203
  4.     for <kermit.misc@watsun.cc.columbia.edu>; Wed, 16 Sep 1998 00:46:23 -0400 (EDT)
  5. Received: (from news@localhost)
  6.     by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id AAA12330
  7.     for kermit.misc@watsun; Wed, 16 Sep 1998 00:46:22 -0400 (EDT)
  8. Path: news.columbia.edu!watsun.cc.columbia.edu!jaltman
  9. From: jaltman@watsun.cc.columbia.edu (Jeffrey Altman)
  10. Newsgroups: comp.protocols.kermit.misc
  11. Subject: Re: set login userid \%1 not working
  12. Date: 16 Sep 1998 04:46:20 GMT
  13. Organization: Columbia University
  14. Lines: 32
  15. Message-ID: <6tnfqs$im0$1@apakabar.cc.columbia.edu>
  16. References: <35FF2D1E.D61C80CA@thermeon.com>
  17. NNTP-Posting-Host: watsun.cc.columbia.edu
  18. Xref: news.columbia.edu comp.protocols.kermit.misc:9205
  19.  
  20. In article <35FF2D1E.D61C80CA@thermeon.com>,
  21. Scott Sampson  <ssampson@thermeon.com> wrote:
  22. : Using K95, I want to prompt user for name before making SRP telnet
  23. : connection.  I am unable to make the variable entered in the 'ask'
  24. : command work in the 'set login userid' command.  Does someone have an
  25. : example to show how it is done?
  26. I do not remember why command quoting is turned off for the
  27. SET LOGIN USER and SET TELNET ENVIRONMENT USER commands but 
  28. it is and the result is that those commands will not evaluate
  29. variables.
  30.  
  31. However, all is not lost.  You can do what you want in a slightly
  32. roundabout manner.
  33.  
  34.   ASK \%1 {Username? }
  35.   ASSIGN SET_LOGIN_USER SET LOGIN USER \%1
  36.   DO SET_LOGIN_USER
  37.   UNDEF SET_LOGIN_USER
  38.  
  39. What this sequence does is create a macro called SET_LOGIN_USER 
  40. whose definition is "SET LOGIN USER <name>" where <name> is
  41. the contents of \%1 as retrieved in the ASK command.  The DO
  42. command is then used to execute the macro definition and UNDEF
  43. is used to undefine the macro.
  44.  
  45.     Jeffrey Altman * Sr.Software Designer * Kermit-95 for Win32 and OS/2
  46.                  The Kermit Project * Columbia University
  47.               612 West 115th St #716 * New York, NY * 10025
  48.   http://www.kermit-project.org/k95.html * kermit-support@kermit-project.org